<!DOCTYPE html>
<html>
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
	Financial Reporting System
	</title>
	<?php
		echo $this->Html->meta('icon');
        echo $this->Html->script(array('jquery', 'jquery-ui'));
		echo $this->Html->script(array('bootstrap.js'));
		echo $this->Html->script(array('bootstrap-datetimepicker.min.js'));
		echo $this->Html->script(array('ckeditor/ckeditor.js'));
		echo $this->Html->script(array('bootstrap-multiselect.js'));
	
		echo $this->Html->css('bootstrap.css');
        echo $this->Html->css('jquery-ui.css');
		echo $this->Html->css('bootstrap-datetimepicker.min.css');
		echo $this->Html->css('bootstrap-multiselect.css');
		
		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
    ?>
		<script type="text/javascript">
			$(function() {
				$('#datetimepicker4').datetimepicker({
				pickTime: false
				});
			});
		</script>
				
		<script type="text/javascript">
			$(document).ready(function() {
			$('.multiselect').multiselect();
			});
		</script>
		
<?php 
class FckHelper extends Helper { 

    var $helpers = Array('Html', 'Javascript'); 

    function load($id) { 
        $did = ''; 
        foreach (explode('.', $id) as $v) { 
            $did .= ucfirst($v); 
        }  

        $code = "CKEDITOR.replace( '".$did."' );"; 
        return $this->Javascript->codeBlock($code);  
    } 
} 
?>
		
        <!-- $(function() {         $("#datepicker").datepicker({              yearRange: "2009:2050",              dateFormat: "dd-MM-yy",             changeMonth: true,             changeYear: true,             minDate: new Date(2009, 6 - 1, 1),             });        }); -->
        

</head>

<body>
<div id="container">
	
	<div id="header">
	<span class="glyphicon glyphicon-search"></span>
	</div>

<div id="navigation">
<div class="navbar">
	<ul>
		<li><?php echo $this->Html->link(__('Home'), array('controller' => 'home', 'action' => 'index')); ?></li>
		<li><?php echo $this->Html->link(__('Funds'), array('controller' => 'managedfunds', 'action' => 'index')); ?></li>
		<li><?php echo $this->Html->link(__('Indices'), array('controller' => 'indices', 'action' => 'index')); ?></li>
		<li><?php echo $this->Html->link(__('Portfolios'), array('controller' => 'modelportfolios', 'action' => 'index')); ?></li>
		<li><?php echo $this->Html->link(__('Reports'), array('controller' => 'reports', 'action' => 'index')); ?></li>
		<?php		

		if($this->Session->read('login')=='yes')
		{
			?>
			<li><?php echo $this->Html->link(__('Data Inputs'), array('controller' => 'fileupload', 'action' => 'index')); ?></li>
		<?php
		}
		if($this->Session->read('login')=='yes')
		{ ?>
			<li><?php echo $this->Html->link(__('Users'), array('controller' => 'users', 'action' => 'index')); ?></li>
		<?php
		}

		if($this->Session->read('login')=='yes')
		{ ?>
			<li><?php echo $this->Html->link(__('Mailing List'), array('controller' => 'mailinglists', 'action' => 'index')); ?></li>
		<?php
		}
	  
		if($this->Session->read('login')=='yes')
		{ ?>
			<li><?php echo $this->Html->link(__('Logout'), array('controller' => 'pages', 'action' => 'display')); ?></li>
		<?php
		}
		else
		{ ?>
			<li><?php echo $this->Html->link(__('Login'), array('controller' => 'pages', 'action' => 'display')); ?></li>
		<?php
		}

		if($this->Session->read('login')=='yes')
		{ ?>
			<h6>Welcome, <?php echo $this->Session->read('UserName')?></h>
		<?php
	}
	?>
	</ul>
</div>
</div>
		
		<div id="content">

			<?php echo $this->Session->flash(); ?>

			<?php echo $this->fetch('content'); ?>
		</div>
		<div id="footer">
		</div>
	</div>
	</div>

</body>
</html>
